package com.tanjun.common.enums.err;

import com.tanjun.common.exception.ErrCode;
import lombok.AllArgsConstructor;

@AllArgsConstructor
public enum LoginErrCode implements ErrCode {
    NOT_LOGIN("10001", "用户未登录"),
    NOT_PERMISSION("10002", "没有权限"),
    NOT_ROLE("10003", "角色不匹配")
    ;

    private String code;
    private String message;

    @Override
    public String code() {
        return this.code;
    }

    @Override
    public String message() {
        return this.message;
    }
}
